/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.helwen.restaurantbooking.datalayer.dao.daoimpl;

import com.helwen.restaurantbooking.datalayer.dao.AbstractDao;
import com.helwen.restaurantbooking.datalayer.dao.IBookingDao;
import com.helwen.restaurantbooking.datalayer.entities.TblBooking;
import java.util.List;
import org.hibernate.criterion.Criterion;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Nghiata
 */
@Repository("bookingDao")
public class BookingDaoImpl extends AbstractDao implements IBookingDao {

    public List<TblBooking> getAllBookingInfo() {
        return getHibernateTemplate().loadAll(TblBooking.class);
    }

    public List<TblBooking> getBookingByCriteria(Criterion... createrion) {
        return null;
    }

    public void saveOrUpdate(TblBooking tblBooking) {
        getHibernateTemplate().saveOrUpdate(tblBooking);
    }
}
